<template>
	<view class="container">
		<view class="status-box bg-box">
			<view class="s-text">
				<text>待接单</text>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
			<view class="tip">
				<text>订单进行中</text>
			</view>
		</view>
		
		<view class="price-time bg-box">
			<view class="p">
				<view class="num">
					<text>￥</text>65.00
				</view>
				<text>服务费</text>
			</view>
			<view class="time">
				<view class="t">
					05-20 今天21:00
				</view>
				<text>客户预约时间</text>
			</view>
		</view>
		
		<!-- 家政 -->
		<view class="bg-box o-box">
			<view class="title">
				<text>客户信息</text>
			</view>
			<view class="info-box">
				<view class="i-item">
					<text>用户信息：</text>张三  12345678910
				</view>
				<view class="i-item">
					<text>服务地址：</text>郑州市中原区*****************
				</view>
			</view>
		</view>
		
		<!-- 服务 -->
		<view class="bg-box o-box s-user-box">
			<view class="title">
				<text>客户信息</text>
			</view>
			<view class="info-box">
				<view class="i-item">
					<text>服务地址：</text>
					<view class="value">
						郑州市中原区*****************
					</view>
				</view>
				<view class="i-item">
					<text>联系电话：</text>
					<view class="value">
						12345678910
					</view>
				</view>
				<view class="i-item">
					<text>用户信息：</text>
					<view class="value">
						<view class="t-1">
							张三  男  50岁  本人 没有XXXX工具
						</view>
						<view class="tool">
							<text>产品名称产品名称X1（￥30.00）</text>
							<image :src="$img_path('/pagesRegion/8.png')" mode="widthFix"></image>
						</view>
					</view>
				</view>
			</view>
		</view>
		
		<view class="bg-box o-box">
			<view class="title">
				<text>备注信息</text>
			</view>
			<view class="info-box">
				<view class="i-item">
					内容内容内容内容内容内容内容内容内容内容
				</view>
			</view>
		</view>
		
		<view class="bg-box o-box">
			<view class="title">
				<text>预约信息</text>
			</view>
			
			<view class="info-box">
				<view class="i-item">
					<text>预约服务：</text>家政服务名称
				</view>
				
				<view v-if="true" class="i-item">
					<text>预约套餐：</text>普通服务
				</view>
				
				<view class="i-item">
					<text>服务数量：</text>X1
				</view>
				
				<view v-if="true" class="i-item">
					<text >疾　　病：</text>感冒
				</view>
			</view>
			<view class="info-box border">
				<view class="i-item">
					<text>服务金额：</text>100.00元
				</view>
				<view class="i-item">
					<text>夜间费：</text>+50.00元
				</view>
				<view v-if="true" class="i-item">
					<text>耗材费：</text>+10.00元
				</view>
				<view class="i-item red">
					<text>优惠券：</text>-20.00元
				</view>
				<view class="i-item">
					<text>实付金额：</text>130.00元
				</view>
			</view>
		</view>
		
		<view class="bg-box o-box jyzm">
			<view class="title">
				<text>就医证明</text>
			</view>
			<view class="i-item">
				<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
				<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
			</view>
		</view>
		<view class="bg-box o-box">
			<view class="title">
				<text>订单信息</text>
			</view>
			
			<view class="info-box">
				<view class="i-item">
					<text>订单编号：</text>4545464644545646 | <text class="copy" @click="clickCopy('464484651112244874898')">复制</text>
				</view>
				<view class="i-item">
					<text>下单时间：</text>2024-04-16  09:00
				</view>
				<view class="i-item">
					<text>取消时间：</text>2024-04-06  09:00
				</view>
				
				<view class="i-item">
					<text>付款方式：</text>余额支付
				</view>
				
			</view>
		</view>
		
		
		<view class="bottom-btn">
			<view class="b-box">
				<button @click="toAssign">指派</button>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getCopy
	} from '@/utils/uni_api.js'
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			clickCopy(text) {
				getCopy(text)
			},
			toAssign(){
				uni.navigateTo({
					url:`/pagesRegion/dispatchCenter/assign`
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	.bg-box{
		background: #FFFFFF;
		border-radius: 20rpx;
		box-sizing: border-box;
		margin-top: 20rpx;
	}
	.status-box{
		padding: 40rpx 28rpx 38rpx;
		box-sizing: border-box;
		.s-text{
			display: flex;
			align-items: center;
			text{
				font-weight: bold;
				font-size: 36rpx;
				color: #000000;
				line-height: 50rpx;
			}
			image{
				width: 12rpx;
				height: 21rpx;
				margin-left: 20rpx;
			}
		}
		.tip{
			font-weight: 400;
			font-size: 30rpx;
			color: #333333;
			line-height: 42rpx;
			margin-top: 16rpx;
			text{
				color: #8B8B8B;
			}
		}
	}
	
	.price-time{
		padding: 48rpx 26rpx 48rpx 28rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		.p{
			flex: auto;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-right: 56rpx;
			.num{
				font-weight: bold;
				font-size: 48rpx;
				color: #000000;
				line-height: 66rpx;
				text{
					font-size: 32rpx;
				}
			}
			&>text{
				font-weight: bold;
				font-size: 28rpx;
				color: #333333;
				line-height: 40rpx;
				margin-top: 6rpx;
			}
			position: relative;
			&::after{
				content: '';
				width: 2rpx;
				height: 76rpx;
				background-color: #DFDFDF;
				position: absolute;
				right: 0;
				top: 50%;
				transform: translateY(-50%);
			}
		}
		.time{
			width: 438rpx;
			box-sizing: border-box;
			padding-left: 52rpx;
			.t{
				font-weight: bold;
				font-size: 48rpx;
				color: #000000;
				line-height: 66rpx;
			}
			&>text{
				font-weight: bold;
				font-size: 28rpx;
				color: #333333;
				line-height: 40rpx;
				margin-top: 6rpx;
			}
		}
	}
	
	.s-user-box{
		.info-box{
			.i-item{
				display: flex;
				align-items: flex-start;
				&>text{
					display: inline-block;
					width: 150rpx;
				}
				.value{
					width: calc(100% - 150rpx);
					font-weight: bold;
					font-size: 30rpx;
					color: #000000;
					line-height: 42rpx;
					
					.tool{
						padding: 18rpx 24rpx 16rpx 20rpx;
						box-sizing: border-box;
						background: #FFE6E6;
						border-radius: 8rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-top: 26rpx;
						text{
							font-weight: 400;
							font-size: 28rpx;
							color: #E72A2A;
							line-height: 40rpx;
						}
						image{
							width: 10rpx;
							height: 19rpx;
						}
					}
				}
			}
		}
	}
	
	.jyzm{
		.i-item{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 18rpx 26rpx;
			box-sizing: border-box;
			image{
				width: 258rpx;
				height: 258rpx;
				border-radius: 20rpx;
			}
		}
	}
	
	.o-box{
		padding: 28rpx 20rpx 14rpx 24rpx;
		box-sizing: border-box;
		.title{
			padding-left: 16rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #000000;
			line-height: 50rpx;
			position: relative;
			&::before{
				content: '';
				width: 6rpx;
				height: 30rpx;
				background: #E72A2A;
				border-radius: 4rpx;
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%);
			}
		}
		.info-box{
			padding: 20rpx 0;
			&.border{
				border-top: 2rpx solid #EEEEEE;
			}
			.i-item{
				padding: 20rpx 0;
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
				&.red{
					color: #FF4A4A;
				}
				text{
					font-weight: 400;
					color: #000000;
				}
				.copy{
					font-weight: bold;
					font-size: 30rpx;
					color: #000000;
					line-height: 42rpx;
					padding-left: 10rpx;
				}
			}
		}
	}
	
	.bottom-btn{
		width: 100%;
		height: 116rpx;
		margin-top: 20rpx;
		.b-box{
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			width: 100%;
			padding: 0 22rpx;
			box-sizing: border-box;
			padding-bottom: constant(safe-area-inset-bottom);
			padding-bottom: env(safe-area-inset-bottom);
			button{
				width: 100%;
				height: 96rpx;
				background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
				border-radius: 80rpx;
				font-weight: bold;
				font-size: 36rpx;
				color: #FFFFFF;
				line-height: 96rpx;
			}
		}
	}
}
</style>
